<?php /* Smarty version Smarty-3.1.12, created on 2013-06-09 10:07:04
         compiled from "D:\mxx\sys-admin\template\common\page.htm" */ ?>
<?php /*%%SmartyHeaderCode:831151b3e3486962a0-80630088%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '203c3e0b11bf2a49066c113fd41126e2bb845d9c' => 
    array (
      0 => 'D:\\mxx\\sys-admin\\template\\common\\page.htm',
      1 => 1368414808,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '831151b3e3486962a0-80630088',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'count' => 0,
    'maxresult' => 0,
    'page' => 0,
    'total' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_51b3e34873c815_55210213',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51b3e34873c815_55210213')) {function content_51b3e34873c815_55210213($_smarty_tpl) {?><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!-- 分页 -->
<div class="paging">
   共 <span id="totalRecords"><?php echo $_smarty_tpl->tpl_vars['count']->value;?>
</span>记录,每页  
 <select id="max_result" onchange="to_page(1);">
	<option value="10" <?php if ($_smarty_tpl->tpl_vars['maxresult']->value==10){?>selected="selected"<?php }?>>10</option>
	<option value="20" <?php if ($_smarty_tpl->tpl_vars['maxresult']->value==20){?>selected="selected"<?php }?>>20</option>
	<option value="50" <?php if ($_smarty_tpl->tpl_vars['maxresult']->value==50){?>selected="selected"<?php }?>>50</option>
	<option value="100" <?php if ($_smarty_tpl->tpl_vars['maxresult']->value==100){?>selected="selected"<?php }?>>100</option>
    </select> 
      <span id="page-link">
       <?php if ($_smarty_tpl->tpl_vars['page']->value>1){?>
        <a href="javascript:to_page(1);">首页</a>
        <a href="javascript:to_page(<?php echo $_smarty_tpl->tpl_vars['page']->value-1;?>
);">上页</a>
       <?php }?>
       <?php if ($_smarty_tpl->tpl_vars['page']->value>0&&$_smarty_tpl->tpl_vars['page']->value<$_smarty_tpl->tpl_vars['total']->value){?>
         <a href="javascript:to_page(<?php echo $_smarty_tpl->tpl_vars['page']->value+1;?>
);">下页</a>
         <a href="javascript:to_page(<?php echo $_smarty_tpl->tpl_vars['total']->value;?>
);">末页</a>
       <?php }?>
      <select  onchange="to_page(this.value);">
         <?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['i'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['total']->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = ((int)1) == 0 ? 1 : (int)1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = min(ceil(($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start']+1)/abs($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'])), $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max']);
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?>
         <option value="<?php echo $_smarty_tpl->getVariable('smarty')->value['section']['i']['index']+1;?>
" <?php if (($_smarty_tpl->getVariable('smarty')->value['section']['i']['index']+1)==$_smarty_tpl->tpl_vars['page']->value){?>selected="selected"<?php }?>><?php echo $_smarty_tpl->getVariable('smarty')->value['section']['i']['index']+1;?>
</option>
         <?php endfor; endif; ?> 
      </select>
   </span>
<input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['page']->value;?>
" id="page"/>
</div>
<!-- END 分页 --><?php }} ?>